import request from '@/utils/request'

// 查询调度车载设备记录信息列表
export function listDispatchDevice(query) {
  return request({
    url: '/manager/dispatchDevice/list',
    method: 'get',
    params: query
  })
}

// 查询调度车载设备记录信息详细
export function getDispatchDevice(deviceRecordid) {
  return request({
    url: '/manager/dispatchDevice/' + deviceRecordid,
    method: 'get'
  })
}

// 新增调度车载设备记录信息
export function addDispatchDevice(data) {
  return request({
    url: '/manager/dispatchDevice',
    method: 'post',
    data: data
  })
}

// 修改调度车载设备记录信息
export function updateDispatchDevice(data) {
  return request({
    url: '/manager/dispatchDevice',
    method: 'put',
    data: data
  })
}

// 删除调度车载设备记录信息
export function delDispatchDevice(deviceRecordid) {
  return request({
    url: '/manager/dispatchDevice/' + deviceRecordid,
    method: 'delete'
  })
}

// 导出调度车载设备记录信息
export function exportDispatchDevice(query) {
  return request({
    url: '/manager/dispatchDevice/export',
    method: 'get',
    params: query
  })
}
